import request from '@/utils/request.js'

// 请求登录
export const loginAPI = data => {
  return request({
    url: '/login',
    method: 'post',
    data
  })
}

// 获取用户信息
export const getUserInfoAPI = () => {
  return request({
    url: '/info'
  })
}

// 退出登录
export const logoutAPI = () => {
  return request({
    url: '/logout'
  })
}
